package com.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class HelloRabbitConfig {

    @Bean
    public Queue getQueue(){
        return new Queue("holle");
    }

    @Bean
    public Jackson2JsonMessageConverter getConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
